<!DOCTYPE html>
<html lang="zh">

<head>
	<meta charset="utf-8">
	<title>helloVue2</title>
</head>

<body>
	<div id="app">
		{{message}}
	</div>
	<script>
		function B() {
			var a = 0
			return function () {
				console.log(a++);
			}
		}

		var b = B();
		b()
		b()
	</script>
</body>

</html>